/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package com.lifesting.workflow.runtime;

import com.lifesting.workflow.model.gd.Node;
import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Node Executor</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link com.lifesting.workflow.runtime.NodeExecutor#getNode <em>Node</em>}</li>
 * </ul>
 * </p>
 *
 * @see com.lifesting.workflow.runtime.RuntimePackage#getNodeExecutor()
 * @model
 * @generated
 */
public interface NodeExecutor extends Executor {
	/**
	 * Returns the value of the '<em><b>Node</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Node</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Node</em>' reference.
	 * @see #setNode(Node)
	 * @see com.lifesting.workflow.runtime.RuntimePackage#getNodeExecutor_Node()
	 * @model
	 * @generated
	 */
	Node getNode();

	/**
	 * Sets the value of the '{@link com.lifesting.workflow.runtime.NodeExecutor#getNode <em>Node</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Node</em>' reference.
	 * @see #getNode()
	 * @generated
	 */
	void setNode(Node value);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * do something when process close to node
	 * <!-- end-model-doc -->
	 * @model
	 * @generated
	 */
	void enter(ExecutionContext context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	void leave(ExecutionContext context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	void execute(ExecutionContext context);

} // NodeExecutor
